Document Repo::new_for_path
authorFelix Krull <f_krull@gmx.de>
Fri, 24 May 2019 23:34:50 +0000 (01:34 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/src/repo.rs

index 6a7c5933771db79da793ace58c0beba1653ceb45..219b5f77a3421206fc50775a557a74d28e260e03 100644 (file)
@@ -35,6 +35,7 @@ unsafe fn from_glib_container_variant_set(ptr: *mut glib_sys::GHashTable) -> Has
 }
 
 impl Repo {
+    /// Create a new `Repo` object for working with an OSTree repo at the given path.
     pub fn new_for_path<P: AsRef<Path>>(path: P) -> Repo {
         Repo::new(&gio::File::new_for_path(path.as_ref()))
     }